package com.quan.system.common.enums;

public enum OSS {

	ALIYUN("aliyun", "阿里云OSS"),
	QINIUYUN("qiniuyun", "七牛云OSS");
	
	private String name ;
	
	private String descName ;

	private OSS(String name, String descName) {
		this.name = name;
		this.descName = descName;
	}
	
	public static String getName(String name) {
		for(OSS oss : OSS.values()) {
			if(oss.getName().equals(name)) {
				return oss.getName() ;
			}
		}
		return null ;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescName() {
		return descName;
	}

	public void setDescName(String descName) {
		this.descName = descName;
	}
	
	public static void main(String[] args) {
		System.out.println(OSS.QINIUYUN.getName());
	}
	
}
